<template>
  <div>
    <Header />
      this is  a pageIndex
    <Footer />
  </div>
</template>


<script>
import header from  '../components/header.vue'
import footer from '../components/footer.vue'
console.log(header)
  export default({
    data(){
        return {

        }
    },
    components:{
     Header:header,
      Footer:footer
    },
    methods:{
        getP(){
          this.axios.get('/home/index/getIndex')
            .then(function (res) {
              console.log(res.data)
            })
        }
    },
    mounted(){
        this.getP()
    }


  })

</script>
